package com.tuanzi.loan.web.lazy.banana.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.banana.statistics.BananaCommonActivityRegisterService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.banana.statistics.BananaCommonActivityRegisterRequest;
import com.tuanzi.loan.vo.response.banana.statistics.BananaCommonActivityRegisterResponse;

public class BananaCommonActivityRegisterLazyDataModel extends BaseLazyDataModel<BananaCommonActivityRegisterRequest, BananaCommonActivityRegisterResponse> {

	private BananaCommonActivityRegisterService bananaCommonActivityRegisterService = SpringContextHolder.getBean(BananaCommonActivityRegisterService.class);

	public BananaCommonActivityRegisterLazyDataModel(BananaCommonActivityRegisterRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<BananaCommonActivityRegisterResponse> doLoad(PageSearcher<BananaCommonActivityRegisterRequest> pageSearcher) {
		return bananaCommonActivityRegisterService.list(pageSearcher);
	}

}